﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketMovie.Admin
{
    public partial class WebForm10 : System.Web.UI.Page
    {
        private DataClasses1DataContext dc = new DataClasses1DataContext();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void ButtonSave_Click(object sender, EventArgs e)
        {
            Room roo = new Room();
            roo.code_room = this.addroom.Value;
            roo.name_room = this.addnameroom.Value;
            roo.type_room = this.addtyperoom.Value;
            roo.status = Convert.ToBoolean(this.addstatusroom.Value);
            roo.notes = this.addnotes.Value;
            this.dc.Rooms.InsertOnSubmit(roo);
            this.dc.SubmitChanges();

        }
    }
}